package exception;

public class ExceptionApiDemo {
    public static void main(String[] args) {
        try{
            String str = "abc";
            int d = Integer.parseInt(str);
            System.out.println(d);
        }catch(NumberFormatException e){
            e.printStackTrace();
            String massage = e.getMessage();
            System.out.println(massage);
        }
    }
}
